/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package jas.bank;

import http.rpc.RemoteException;
import http.rpc.RemoteObject;
import http.rpc.RpcClient;

/**
 *
 * @author Asger
 */
public class Bank_Stub implements Bank {
    
    private RemoteObject obj;
    private RpcClient client;
    
    public Bank_Stub(RemoteObject obj, RpcClient client) {
        this.obj = obj;
        this.client = client;
    }

    public Account getAccount(String name) throws RemoteException {
        return (Account) client.remoteCall(Account.class, obj.getId(), "getAccount", new Object[]{name});
    }

}
